#!/bin/bash
for i in `find ./ -name 'function.*.html'` ; do
	newname=`echo $i | sed -n -e 's/.\/function./.\/temp\//g' -e 's/-/_/g' -e 's/.html/.txt/p'`
	
    echo open $i write to $newname
	
	lynx.exe -dump -nolist -verbose -display_charset=utf8 $i | sed -e '1,7 d' | sed -n -e :a -e '1,6!{P;N;D;};N;ba'  > $newname
done
